package com.hadoop.project.entity.po;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;

import java.io.Serializable;


/**
 * @Description:
 * @author:alexmaodali
 * @date:2025/4/13
 */
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class VideoRank implements Serializable {

    /**
     * 自增ID
     */
    private Long id;

    /**
     * 视频ID 视频ID是以字符串存储的 这个字段弃用
     */
    private Long vid;
    // 这里我加了一个字段，也是存储vid的
    private String videoId;

    /**
     * 观看次数
     */
    private Long views;

    public String getVideoId() {
        return videoId;
    }

    public void setVideoId(String videoId) {
        this.videoId = videoId;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return this.id;
    }

    public void setVid(Long vid) {
        this.vid = vid;
    }

    public Long getVid() {
        return this.vid;
    }

    public void setViews(Long views) {
        this.views = views;
    }

    public Long getViews() {
        return this.views;
    }

    @Override
    public String toString() {
        return "自增ID:" + (id == null ? "空" : id) + ",视频ID:" + (vid == null ? "空" : vid) + ",视频的总观看次数:" + (views == null ? "空" : views);
    }
}
